package priv.yiyuan.example.design.visitor;

/**
 * 库存数据
 *
 * @author YiYuan
 * @data 2025/8/4
 * @apoNote
 */
public class InventoryData implements ReportDataElement {

    private String item;

    private int quantity;

    public InventoryData(String item, int quantity) {
        this.item = item;
        this.quantity = quantity;
    }

    public String getItem() {
        return item;
    }

    public int getQuantity() {
        return quantity;
    }

    @Override
    public void accept(ReportVisitor visitor) {
        visitor.visit(this);
    }

}
